﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorldEvolution.DBData
{
    //zone之间的联通信息
    public struct LinkZoneData
    {
        public uint CellIndex;
        public ulong AdjacentZoneID;
        public ulong AdjacentZoneCellIndex;
    }

    /// <summary>
    /// 最小空间组成数据
    /// </summary>
    public struct CellData
    {
        public int x;
        public int y;
        public byte[] mElements;
    }

    /// <summary>
    /// 区域由 zone 的集合形成
    /// </summary>
    public class ZoneData : IDBData
    {
        public ulong ID;
        public ulong ParentRegionID;

        public CellData[] Cells;
        public LinkZoneData[] AdjacentZones;
    }
}
